<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>显示班级成绩</title>
<script type="text/javascript">
	function deng(){
		window.location="main?method=stuMain"
	}
	function fandeng() {
		window.location="login.jsp"
	}	
	function fanzhu() {
		window.location="main?method=stuMain"
	}	
</script>
</head>
<body>
<h3>班级成绩</h3>
<table border="1" style="width: 600px;">
	
	<thead>
		<tr>
			<th ><i class="fa fa-sort" aria-hidden="true"></i>学号</th>
			<th>姓名</th>
		
			<c:forEach items="${kcs }" var="kc">
				<th>${kc.name}</th>
			</c:forEach>
			<th>总分</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${cjb }" var="row">
		<tr>
			<c:forEach items="${row}" var="cell">
			<td>${cell}</td>
			</c:forEach>			
		</tr>		
		</c:forEach>	
	</tbody>
	
</table>
	<button onclick="fandeng()" class="btn1">返回登录页面</button>
	<button onclick="fanzhu()" class="btn">返回主页面</button>
</html>